//
//  AOTempController.swift
//  weibo_zha
//
//  Created by _zha on 16/10/23.
//  Copyright © 2016年 渣. All rights reserved.
//

import UIKit

class AOTempController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
    }
    
    //监听事件
    @objc private func pushClick() {
        let tempVc = AOTempController()
        navigationController?.pushViewController(tempVc, animated: true)
    }
    
    private func setupUI() {
        view.backgroundColor = UIColor.white
        setupNav()
    }
    
    private func setupNav() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(setHighlightedImgName: nil, title: "PUSH", target: self, action: #selector(pushClick))
        navigationItem.title = "第\(navigationController?.childViewControllers.count ?? 0)个控制器   "
    }
    
}
